package com.linq.cool.beauty.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linq.cool.beauty.domain.BeautyVehicle;
import com.linq.cool.beauty.dto.BeautyVehicleQueryDTO;
import com.linq.cool.beauty.vo.BeautyVehicleVO;

/**
 * @Author: yqlin
 * @Date: 2021/2/1 03:59
 * @Description:
 * @Version: 1.0.0
 */
public interface BeautyVehicleService extends IService<BeautyVehicle> {
    /**
     * 条件分页查询车辆信息
     *
     * @param page 分页对象
     * @param dto  条件
     *
     * @return 结果
     */
    IPage<BeautyVehicleVO> listByPage(IPage<BeautyVehicleVO> page, BeautyVehicleQueryDTO dto);

    /**
     * 新增车辆
     *
     * @param vehicle
     *
     * @return
     */
    boolean saveVehicle(BeautyVehicle vehicle);

    /**
     * 修改车辆
     *
     * @param vehicle
     *
     * @return
     */
    boolean updateVehicle(BeautyVehicle vehicle);
}
